package yangyongchao.com.mymvpdome;

import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

/**
 * Created by yyc on 2018/2/5.
 */

public class HomeModel {
    public static void getEtData(final EditText editText, TextView textView, final HomeCallback callback){
        if (editText== null || textView ==null){
            callback.Error("失败了");
        }
        callback.Success("成功");
        textView.setText(editText.getText());
    }
}
